package com.itheima.dao;

import com.itheima.domain.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/9/29 19:02
 */
public interface OrderSettingDao {


    //获取数据库中的数据
    long findCountByOrderDate(Date orderDate);

    //更新操作;
    void editNumberByOrderDate(OrderSetting orderSetting);

    //添加操作
    void add(OrderSetting orderSetting);

    //根据日期范围查询预约设置数据
    List<OrderSetting> getOrderSettingByMonth(Map<String, String> map);

    //根据日期查询是否可以预约;
    OrderSetting getByOrderDate(Date orderDate);

    //预约成功,人数加一;
    void updateReservations(Date orderDate);

    void deleteByCurrentTime();

}
